import request from '@/utils/request'

// 查询历史会话列表
export function listUserSessions(query) {
  return request({
    url: '/system/userSessions/list',
    method: 'get',
    params: query
  })
}

// 查询历史会话详细
export function getUserSessions(id) {
  return request({
    url: '/system/userSessions/' + id,
    method: 'get'
  })
}

// 新增历史会话
export function addUserSessions(data) {
  return request({
    url: '/system/userSessions',
    method: 'post',
    data: data
  })
}

// 修改历史会话
export function updateUserSessions(data) {
  return request({
    url: '/system/userSessions',
    method: 'put',
    data: data
  })
}

// 删除历史会话
export function delUserSessions(id) {
  return request({
    url: '/system/userSessions/' + id,
    method: 'delete'
  })
}
